From: Lukáš Tyrychtr Date: Mon, 23 Sep 2024 08:47:49 +0000 (+0200) Subject: quick-slider: Do not allow focusing the icon when it's not reactive X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~173^2^2~244 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=25a2a0156e3d6279f57ff4ea0493433b679ea35b;p=gnome-shell.git quick-slider: Do not allow focusing the icon when it's not reactive This hides a disabled unlabeled button from the focus order in the display brightness status indicator, and may be others. Part-of: --- diff --git a/js/ui/quickSettings.js b/js/ui/quickSettings.js index 1f10fa590..344732e3f 100644 --- a/js/ui/quickSettings.js +++ b/js/ui/quickSettings.js @@ -294,6 +294,9 @@ export const QuickSlider = GObject.registerClass({ this.bind_property('icon-reactive', this._iconButton, 'reactive', GObject.BindingFlags.SYNC_CREATE); + this.bind_property('icon-reactive', + this._iconButton, 'can-focus', + GObject.BindingFlags.SYNC_CREATE); this.bind_property('icon-label', this._iconButton, 'accessible-name', GObject.BindingFlags.SYNC_CREATE);